package cn.jingyuan.owl.web.mapping;

public abstract class AbstractApiScanProcessor implements ApiScanProcessor {

    /** 服务标识 */
    protected String application;

    /** 服务名称 */
    protected String applicationName;

    /** 项目路径 */
    protected String contextPath;

    /** 启用扫描 */
    protected boolean enableScan = true;

    @Override
    public String getApplication() {
        return application;
    }

    @Override
    public void setApplication(String application) {
        if (null != application) {
            this.application = application;
        }
    }

    @Override
    public String getApplicationName() {
        return applicationName;
    }

    @Override
    public void setApplicationName(String applicationName) {
        if (null != applicationName) {
            this.applicationName = applicationName;
        }
    }

    @Override
    public String getContextPath() {
        return contextPath;
    }

    @Override
    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    @Override
    public void enableScan() {
        enableScan = true;
    }

    @Override
    public void disableScan() {
        enableScan = false;
    }

    @Override
    public boolean isEnableScan() {
        return enableScan;
    }

}
